'use strict';

function choose_even(collection) {
  let result=[];
  for(let item of collection){
    if(item%2==0){
      result.push(item);
    }
  }
  console.log(result);
  return result;
}

module.exports = choose_even;
choose_even([0, 1, 2, 3, 4, 6]);
